package com.sc.study.exam.domain;

import com.sc.study.student.domain.ScStudent;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sc.common.annotation.Excel;
import com.sc.common.core.domain.BaseEntity;

/**
 * 学员考试结果对象 sc_student_testexam_result
 * 
 * @author sc
 * @date 2022-02-27
 */
public class ScStudentTestexamResult extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 学员编号 */
    @Excel(name = "学员编号")
    private Long studentid;

    /** 考试题目编号 */
    @Excel(name = "考试题目编号")
    private Long testexamquestionid;

    /** 学员答案 */
    @Excel(name = "学员答案")
    private String studentanswer;

    /** 答案附件 */
    @Excel(name = "答案附件")
    private String answerattachment;

    //学员
    private ScStudent student;

    //考试题目 一个中间表通过他来获取题目
    private ScTestexamQuestion scTestexamQuestion;

    //题目
    private ScQuestion scQuestion;

    //考试
    /** 考试编号 */
    @Excel(name = "考试编号")
    private Integer testexamid;

    public ScQuestion getScQuestion() {
        return scQuestion;
    }

    public void setScQuestion(ScQuestion scQuestion) {
        this.scQuestion = scQuestion;
    }

    public ScTestexamQuestion getScTestexamQuestion() {
        return scTestexamQuestion;
    }

    public void setScTestexamQuestion(ScTestexamQuestion scTestexamQuestion) {
        this.scTestexamQuestion = scTestexamQuestion;
    }

    public ScStudent getStudent() {
        return student;
    }

    public void setStudent(ScStudent student) {
        this.student = student;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getTestexamid() {
        return testexamid;
    }

    public void setTestexamid(Integer testexamid) {
        this.testexamid = testexamid;
    }

    public Long getId()
    {
        return id;
    }
    public void setStudentid(Long studentid) 
    {
        this.studentid = studentid;
    }

    public Long getStudentid() 
    {
        return studentid;
    }
    public void setTestexamquestionid(Long testexamquestionid) 
    {
        this.testexamquestionid = testexamquestionid;
    }

    public Long getTestexamquestionid() 
    {
        return testexamquestionid;
    }
    public void setStudentanswer(String studentanswer) 
    {
        this.studentanswer = studentanswer;
    }

    public String getStudentanswer() 
    {
        return studentanswer;
    }
    public void setAnswerattachment(String answerattachment) 
    {
        this.answerattachment = answerattachment;
    }

    public String getAnswerattachment() 
    {
        return answerattachment;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("studentid", getStudentid())
            .append("testexamquestionid", getTestexamquestionid())
            .append("studentanswer", getStudentanswer())
            .append("answerattachment", getAnswerattachment())
            .toString();
    }
}
